<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * Class app\model\Address
 *
 * @property bool $default 默认地址:0=否,1=是
 * @property int $deletetime
 * @property int $id
 * @property int $user_id 用户
 * @property string $address 地址
 * @property string $city 市
 * @property string $createtime
 * @property string $mobile 手机号
 * @property string $name 姓名
 * @property string $province 省
 * @property string $region 区
 * @property-read \app\model\User $user
 * @method static \think\db\Query onlyTrashed()
 * @method static \think\db\Query withTrashed()
 */
class Address extends Model
{
	use SoftDelete;
	protected $createTime = 'createtime';
	protected $deleteTime = 'deletetime';
	
	function user()
	{
		return $this->belongsTo(User::class,'user_id');
	}
}
